﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Database.Entities;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Database
{
    /// <summary>
    /// 
    /// </summary>
    public class Employee : EntityBase
    {
        public Employee()
        {
            Address = new Address();
            CreateDate = DateTime.Now;
        }

        [MaxLength(50)]
        public string Name { get; set; }
        public int Age { get; set; }
        public double Salary { get; set; }
        public Address Address { get; set; }
        public virtual Department Department { get; set; }
        public DateTime CreateDate { get; set; }

        public WageType WageType { get; set; }
    }
}
